
<?php
$db = new DBQuery;
$sql = 'SELECT * FROM solution LIMIT 10;';
$solutions = $db->query($sql);
if($solutions){
?>
<div class="wrapContent_news">
    <div class="tabContent">
    	<h2 class="tabContentTitle">Các vấn đề thường gặp phải</h2>
    </div>
    <div class="mainContent2">
   <?php foreach($solutions as $solution):?>
    	<div class="news2">
    		<h2 class="news1Title"><a href="<?=generate_detail_url('solution',$solution)?>"><?php  echo $stringhelper->CropWord($solution['sol_question'],50)?></a></h2>
            <div class="newsCont">
                <p><?php  echo $stringhelper->CropWord($solution['sol_answer'],50)?></p>
            </div>
        </div>
        
    <?php endforeach; }?>
    </div>
</div>
<script>
$('.mainContent2').jScrollPane({
    hijackInternalLinks: true
});
</script>